package com.xywy.tangandroid.logic;

import java.util.Map;

import android.content.Context;

import com.xywy.tangandroid.util.Constant;
import com.xywy.tangandroid.util.HttpUtil;


/**
 * ���̨��������
 * @author James tf
 *
 */
public class XyWyApi {
  
	/**
	 * ע�� �ύ�û�����Ϣ
	 * @return
	 */
	public static String ResgisterUserInfo(Context context,Map<String, String> map){
		String result = "";
		String url=Constant.getUrl("kbb", "users")+"&type=registAccount";
		result = HttpUtil.request(url, map, "post");
		return result;
	}
	/**
	 * ��½
	 * @return
	 */
	public static String login(Context context,Map<String, String> map){
		String result = "";
		String url=Constant.getUrl("kbb", "users")+"&type=login";
		result = HttpUtil.request(url, map, "post");
		return result;
	}
	
	/**
	 * ע��ǰ���ֻ���֤
	 * @return
	 */
	public static String ResgisterPhoneConfirm() {
		String result = "";
		String url=Constant.getUrl("sms", "sendCode")+"&type=4&target=";
//		+Constant.PHONE;
		result = HttpUtil.request(url,  null,"get");
		return result;
	}
}
